import React, { FC } from 'react'
import { Outlet } from 'react-router-dom'
import useNavPage from '../hooks/useNavPage'
import useLoadUserData from '../hooks/useLoadUserData'

const QuestionLayout: FC = () => {
  const { waitingUserData } = useLoadUserData()
  useNavPage(waitingUserData)

  return (
    <div>
      <div style={{ height: '100vh' }}>
        <Outlet></Outlet>
      </div>
    </div>
  )
}
export default QuestionLayout
